package com.share.rule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.rule.domain.FeeRule;
import com.share.rule.domain.FeeRuleRequestForm;
import com.share.rule.domain.FeeRuleResponseVo;

import java.util.List;

public interface IFeeRuleService extends IService<FeeRule> {
    /**
     * 查询费用规则列表
     * @param feeRule
     * @return
     */
    List<FeeRule> selectFeeRuleList(FeeRule feeRule);

    /**
     * 添加费用规则
     * @param feeRule
     * @return
     */
    int saveFeeRule(FeeRule feeRule);

    /**
     * 修改费用规则
     * @param feeRule
     * @return
     */
    int updateFeeRule(FeeRule feeRule);

    /**
     * 查询所有费用规则
     * @return
     */
    List<FeeRule> selectAllRuleFeeList();

    /**
     * 计算订单费用
     * @param requestForm
     * @return
     */
    FeeRuleResponseVo calculateOrderFee(FeeRuleRequestForm requestForm);
}
